import { createApp } from 'vue';

import axios from 'axios' ;
import VueAxios from 'vue-axios' ;

import ElementPlus from 'element-plus' ;
import 'element-plus/dist/index.css' ;

import router from '@/routes' ;

import App from './App.vue' ;

const app = createApp(App);

// 设置 axios 发送请求时的 基础路径(baseURL)
// '/apis/customer/sign/in' ==> '/customer/sign/in'
axios.defaults.baseURL = '/apis' ;

app.use( VueAxios , axios );

app.use( ElementPlus ) ;

app.use( router );

app.mount('#app');
